<table class="layui-table layui-form">
    <thead>
        <tr>
            <th>订单序号</th>
            <th>订单编号</th>
            <th>类型</th>
            <th>账号</th>
            <th style="width: 320px;">菜品</th>
            <th>取餐时间</th>
            <th>合计价格</th>
            <th>实付金额</th>
            <th>支付类型</th>
            <th>建立时间</th>
            <th>付款时间</th>
            <th>订单状态</th>
            <th>取货状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="result" item="val">
        <tr>
            <td>{$key+1}</td>
            <td>{$val['order_no']}</td>
            <td>{$val['ordertype'] == 0 ? "线上订单" : "线下订单"}</td>
            <td>{$val['s_mobile']}</td>
            <td>{$val['product']}</td>
            <td>{$val['pickuptime']}</td>
            <td>{$val['price']}</td>
            <td>{$val['realpayprice']}</td>
            <td>
        <if condition="$val['paytype'] eq 1">微信支付
            <elseif condition="$val['paytype'] eq 2" />支付宝
            <else />现金支付
        </if>
        </td>
        <td>{$val['createdt']}</td>
        <td>{$val['wx_time_end']}</td>
        <td>{$val['gorderstatus']}</td>
        <td>{$val['guserstatus']}</td>
        <td class="td-manage">
        <if condition="$val['gorderstatus'] eq '已支付'">
            <button class="layui-btn print" lay-submit="" lay-filter="sreach" id="" data-orderNo="{$val['order_no']}">
                打印小票</button>
        </if>
        <!--                                            <a title="查看" onclick="xadmin.open('编辑', 'order-view.html')" href="javascript:;">
                                                        <i class="layui-icon">&#xe63c;</i></a>
                                                    <a title="删除" onclick="member_del(this, '要删除的id')" href="javascript:;">
                                                        <i class="layui-icon">&#xe640;</i></a>-->
        </td>
        </tr>
    </foreach>
</tbody>
</table>
<div class="layui-card-body ">
    <div class="page">
        <div>
            {$page}
        </div>
    </div>
</div>